Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement new address sorting algorithm #9847

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

smira
Copy link
Member

@smira smira commented Nov 29, 2024

Fixes #9725

See #9749

@smira

This comment was marked as outdated.

@smira smira force-pushed the feat/node-address-sort branch from 99fefc4 to 5d758af Compare December 3, 2024 13:44
@smira smira force-pushed the feat/node-address-sort branch 2 times, most recently from b0e133f to 5cc4c60 Compare December 4, 2024 15:23
@smira smira marked this pull request as ready for review December 4, 2024 15:23
// ComparePrefixesLegacy is the old way to sort prefixes.
//
// It only compares addresses and does not take prefix length into account.
func ComparePrefixesLegacy(a, b netip.Prefix) int {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function and the function below is the tl;dr of this change, everything else is just supporting stuff

@smira smira force-pushed the feat/node-address-sort branch from 5cc4c60 to 241c2d3 Compare December 4, 2024 15:25
@DmitriyMV
Copy link
Member

🆒

@smira smira force-pushed the feat/node-address-sort branch from 241c2d3 to 7d65071 Compare December 5, 2024 10:38
@smira
Copy link
Member Author

smira commented Dec 5, 2024

/m

@talos-bot talos-bot merged commit 7d65071 into siderolabs:main Dec 5, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

Kubelet/etcd uses wrong IPv6 Address
3 participants